package esrunecalc;

import java.util.Vector;

/**
 *
 * @author Trevor
 */
public class Filter {

    private int[] runes;
    private boolean[] slots;
    private Vector<Integer> equip;

    public Filter()
    {
        runes = new int[46];
        slots = new boolean[6];
        equip = new Vector<Integer>();
    }

    public void addRune(int i, int n)
    {
        runes[i] = n;
    }

    public int getRune(int i)
    {
        return runes[i];
    }

    public int[] getRunes()
    {
        return runes;
    }

    public void addSlot(int i)
    {
        slots[i] = true;
    }

    public boolean getSlot(int i)
    {
        return slots[i];
    }

    public boolean[] getSlots()
    {
        return slots;
    }

    public void addEquip(int eq)
    {
        equip.add(eq);
    }

    public int getEquipSize()
    {
        return equip.size();
    }

    public int[] getEquips()
    {
        Integer[] array = new Integer[equip.size()];
        equip.toArray(array);
        int[] intarray = new int[equip.size()];

        for(int i = 0; i<equip.size();i++)
        {
            intarray[i] = array[i].intValue();
        }

        return intarray;
    }


}
